def func2():
    data = input('输入一个字符序列：')
    data.isalnum()
    data = list(data)
    count = {'upper':0,
             'lower':0,
             'num':0,
             'other':0
             }
    for i in data:
        if i.isupper():
            count['upper']+=1
        elif i.islower():
            count['lower']+=1
        elif i.isalnum():
            count['num']+=1
        else:
            count['other']+=1
    for  i in count.items():
        print(i)



if __name__ == '__main__':
    func2()
